]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
calendar: update current day highlight on day change
authorSebastian Keller <sebastian-keller@gmx.de>
Tue, 6 Jan 2015 23:35:13 +0000 (00:35 +0100)
committerAdel Gadllah <adel.gadllah@gmail.com>
Sat, 10 Jan 2015 16:44:38 +0000 (17:44 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=742492

js/ui/calendar.js

index 5d6d230524cd7dbe1adc3e9082e020aa2bf76f6d..b778604006a0870769f7923e59f93ab27a39aa9c 100644 (file)
@@ -601,6 +601,7 @@ const Calendar = new Lang.Class({
         beginDate.setHours(12);
 
         this._calendarBegin = new Date(beginDate);
+        this._markedAsToday = now;
 
         let year = beginDate.getYear();
 
@@ -692,7 +693,7 @@ const Calendar = new Lang.Class({
         else
             this._monthLabel.text = this._selectedDate.toLocaleFormat(this._headerFormat);
 
-        if (!this._calendarBegin || !_sameMonth(this._selectedDate, this._calendarBegin))
+        if (!this._calendarBegin || !_sameMonth(this._selectedDate, this._calendarBegin) || !_sameDay(now, this._markedAsToday))
             this._rebuildCalendar();
 
         this._buttons.forEach(Lang.bind(this, function(button) {